#ifndef __SYSUTILS_H__
#define __SYSUTILS_H__

extern unsigned char CharToHex(unsigned char bHex);
extern unsigned char HexToChar(unsigned char bChar);
extern void SaveFile(FILE * file, unsigned char *data, int length);
extern long GetFileLength(FILE *file);
extern int GetDataFromFile(FILE *file, unsigned char * data, int length);
extern void AddLastRecordNumber(unsigned char *data, int num);
extern void AddLastRecordNumberToIndex(unsigned char *data, int num);
extern int GetLastRecordNumFromBuffer(unsigned char *data);
extern int GetDateTimeFromFile(unsigned int * data);
#endif
